/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mx.itschapala.dsw2.invernadero.BL;

import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import mx.itschapala.dsw2.invernadero.Dao.PaymentDaoLocal;
import mx.itschapala.dsw2.invernadero.modelo.Payment;

/**
 *
 * @author Raven
 */
@Stateless
public class PaymentBL implements PaymentBLLocal {
    @EJB
    private PaymentDaoLocal paymentDao;

    @Override
    public void register(Payment payment) {
        paymentDao.create(payment);
    }

    @Override
    public void modify(Payment payment) {
        paymentDao.edit(payment);
    }

    @Override
    public void delete(Payment payment) {
        paymentDao.remove(payment);
    }

    @Override
    public List<Payment> getList() {
        return paymentDao.findAll();
    }
    
       @Override
    public List<Payment> getAll() {
        return paymentDao.findAll();
    }
    
    



}
